package service

import (
	"github.com/RaymondCode/simple-demo/entity/bo"
	"github.com/cloudwego/hertz/pkg/app"
	"mime/multipart"
)

type Video interface {
	// Feed 获取feed流
	Feed(userId int, isLogin bool, latestTime int64) ([]bo.Video, int64, error)
	// Publish 视频发布
	Publish(ctx *app.RequestContext, video *multipart.FileHeader, userId int, title string) error
	// VideoList 获取视频发布列表
	VideoList(userId int) ([]bo.Video,error)
}


